package com.smart.service.job;

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.smart.service.ServiceSupport;

/**
 * 定时统计在线人数
 * 
 */
@Component
@EnableScheduling
public class OnlineCountStatisticsJob extends ServiceSupport{
	
	@Scheduled(cron = "1 */3 * * * ?")
    public void doJob(){
		onlineCountService.saveCurrentOnlineCount();
    }

}
